<template>
  <el-card class="box-card">
    <div slot="header" class="header">
      <h1>
        {{ detail.productName }} <el-tag>{{ detail.productType }}</el-tag>
      </h1>
    </div>
    <div class="txt">
      <p><label>开发板ID: </label>{{ detail.developId }}</p>
      <p><label>授权算法: </label> {{ detail.algorithm }}</p>
      <p><label>授权类型: </label>{{ detail.authType }}</p>
      <p><label>智能体模板: </label>{{ detail.templateName }}</p>
      <p><label>序列号前缀: </label>{{ detail.prefix }}</p>
      <p><label>创建时间: </label>{{ detail.createTime }}</p>
    </div>
  </el-card>
</template>

<script>
export default {
  props: {
    detail: {
      type: Object,
      default: () => {},
    },
  },
  data() {
    return {};
  },
  methods: {},
};
</script>

<style scoped lang="scss">
.txt {
  font-size: 14px;
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  p {
    margin-bottom: 18px;
    width: 25%;
    display: flex;
    flex-direction: column;
  }
}

.header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 auto;
  h1 {
    font-size: 18px;
  }
}
</style>
